home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 11284 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.1 KB

  1. Path: ucl.ac.uk!nobody
  2. From: hammond_g@drkclu.meng.ucl.ac.uk (G. Ruth Hammond)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Why is C faster than FORTRAN?
  5. Date: Wed, 20 Mar 1996 13:25:06 GMT
  6. Organization: UCL Dept Mech Eng
  7. Message-ID: <1996Mar20.132506.91237@ucl.ac.uk>
  8. NNTP-Posting-Host: crs4gw.crs4.it
  9. Originator: daemon@crs4gw.crs4.it
  10.  
  11.  
  12. In article <4i4poj$j7e@thorn.cc.usm.edu>, sakalauk@coam.usm.edu (Peter
  13. Sakalaukus) writes:
  14. |>I have two programs, FORTRAN and C. They both use the same algorithm to
  15. |>manipulate numeric data. The larger the data file though, the faster the
  16. |>C version is, (in relation to the FORTARN program). I am running on a UNIX
  17. |>platform. 
  18.  
  19. quite probably the C RTL has better i/o functions
  20.  
  21. |>My question is: what is the reason that C is so much quicker? Is C normally
  22. |>faster than FORTRAN?
  23.  
  24. C is much easier to optimise by hand, but FORTRAN compilers have had a lot 
  25. more work done on them to make it good for numerical stuff.
  26.  
  27. -- 
  28. ~GuyRuthHammond () {}
  29. // Machinery and Mayhem at UCL Dept Mech Eng              
  30. // mailto:hammond_g@meng.ucl.ac.uk  http://www.ucl.ac.uk/~zcemm23 
  31. // Clear the DECs, it's time for action!            
  32.  
  33.  
  34.